import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

const Main = () =>
    import ('../views/main/Main')
const Activity = () =>
    import ('../views/activity/Activity')
const Mine = () =>
    import ('../views/mine/Mine')
const Invite = () =>
    import ('../views/invite/Invite')

export default new Router({
    mode: 'history',
    routes: [{
            path: '',
            redirect: '/main',
        },
        {
            path: '/main',
            component: Main,
        },
        {
            path: '/mine',
            component: Mine,
        }, {
            path: '/activity',
            component: Activity,
        },
        {
            path: '/invite',
            component: Invite,
        }
    ],
})